GCC4.6: Squash warning in lcd.c
authorMarek Vasut <[email protected]>
Mon, 24 Oct 2011 23:41:00 +0000 (23:41 +0000)
committerWolfgang Denk <[email protected]>
Thu, 27 Oct 2011 21:54:08 +0000 (23:54 +0200)
lcd.c: In function 'lcd_setmem':
lcd.c:446:2: warning: format '%d' expects type 'int', but argument 2 has type
'u_long'
lcd.c:446:2: warning: format '%d' expects type 'int', but argument 3 has type
'u_long'

Signed-off-by: Marek Vasut <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Mike Frysinger <[email protected]>
include/lcd.h

index 0e098d925ecb053e875cc5340aebe2b07d70765e..89cc90c0b9327742135e91fb9f37b8025cf0eb1c 100644 (file)
@@ -159,8 +159,8 @@ typedef struct vidinfo {
 #elif defined(CONFIG_ATMEL_LCD)
 
 typedef struct vidinfo {
-       u_long vl_col;          /* Number of columns (i.e. 640) */
-       u_long vl_row;          /* Number of rows (i.e. 480) */
+       ushort vl_col;          /* Number of columns (i.e. 640) */
+       ushort vl_row;          /* Number of rows (i.e. 480) */
        u_long vl_clk;  /* pixel clock in ps    */
 
        /* LCD configuration register */